package components.valueobjects
{
	import flash.globalization.DateTimeFormatter;
	import flash.globalization.LocaleID;
	
	import utils.nfc.NfcInterface;
	import utils.nfc.NfcTagCall;
	import utils.nfc.NfcTagMapUrl;
	import utils.nfc.NfcTagUrl;
	import utils.nfc.NfcTagVcard;

	[Bindable]
	public class TourVO
	{
		public static const TYPE_TOUR:String="tour";
		private static const imgPath:String="images/tour/";


		public var title:String;
		public var description:String;
		public var img:String;
		public var meetingpoint:String;
		public var periods:String;
		public var duration:String;
		public var price:String;
		public var stations:String;
		public var url:String;
		public var phone:String;
		public var mapimg:String;
		public var guide:PersonVO;


		public function TourVO(title:String, description:String, img:String, meetingpoint:String,periods:String,duration:String,price:String,stations:String, url:String, phone:String, mapimg:String,guide:PersonVO)
		{
			this.title=title;
			this.description=description;
			this.img=imgPath + img;
			this.meetingpoint=meetingpoint;
			this.periods = periods;
			this.duration = duration;
			this.price=price;
			this.stations = stations;
			this.url=url;
			this.phone=phone;
			this.guide = guide;
			// Pfad zum image des guides anpassen
			this.guide.img = imgPath+this.guide.img;
		}
		
		
		public function getNfcContent():Array{
			var nfcContent:Array = new Array();
			nfcContent.push(new NfcTagUrl(NfcInterface.POSITION_TOP,url));
			nfcContent.push(new NfcTagVcard(NfcInterface.POSITION_RIGHT,this.guide));
			nfcContent.push(new NfcTagCall(NfcInterface.POSITION_BOTTOM,this.phone));
			
			return nfcContent;
		}
		
	}
}
